package com.corona.game;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.Vector2;
import com.corona.Game;
import com.corona.game.util.TextureCache;
import com.sun.jna.platform.win32.WinError;
import java.util.ArrayList;
import java.util.Random;

/* compiled from: PkmnMap.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/CycleDayNight.class */
public class CycleDayNight extends Action {
    public static int dayTimer = 18000;
    public int[] currFrames;
    public static boolean fadeToDay;
    public static boolean fadeToNight;
    public static AnimationContainer<Color> animContainer;
    public static AnimationContainer<Color> fadeToDayAnim;
    public String text;
    public int signCounter;
    public Vector2 startPos;
    public Vector2 endPos;
    public Action.Layer layer = Action.Layer.gui_114;
    public int countDownToCacturne = 200;
    public int countDownToGengar = WinError.ERROR_INVALID_PIXEL_FORMAT;
    public ArrayList<Tile> tidalTiles = new ArrayList<>();
    public ArrayList<Tile> changeThese = new ArrayList<>();
    public boolean lowerTide = false;
    public boolean doneTidalSound = true;
    public int tidalTimer = 0;
    public int day = 1;
    public int night = 0;
    public int animIndex = 0;
    public Random rand = new Random();
    public Sprite bgSprite = new Sprite(TextureCache.get(Gdx.files.internal("text2.png")), 0, 0, 160, 144);
    public  int countDownToGhost = this.rand.nextInt(500) + 500;

    public CycleDayNight(Game game) {
        super(new Object[0]);
        animContainer = new AnimationContainer<>();
        animContainer.add(new Color(1.0f, 0.9f, 0.5f, 1.0f), 80);
        animContainer.add(new Color(0.9f, 0.55f, 0.2f, 1.0f), 80);
        animContainer.add(new Color(0.4f, 0.4f, 0.5f, 1.0f), 80);
        animContainer.add(new Color(PkmnMap.nightColor), 80);
        fadeToDayAnim = new AnimationContainer<>();
        fadeToDayAnim.add(new Color(PkmnMap.nightColor), 80);
        fadeToDayAnim.add(new Color(0.5f, 0.5f, 0.6f, 1.0f), 80);
        fadeToDayAnim.add(new Color(0.8f, 0.8f, 0.8f, 1.0f), 80);
        fadeToDayAnim.add(Color.WHITE, 80);
        fadeToDay = false;
        fadeToNight = false;
        this.bgSprite.setPosition(0.0f, 24.0f);
        this.text = game.map.timeOfDay + ": ";
    }

    @Override // com.corona.game.Action
    public String getCamera() {
        return "gui";
    }

    @Override // com.corona.game.Action
    public Action.Layer getLayer() {
        return this.layer;
    }

    /*  JADX ERROR: JadxRuntimeException in pass: BlockProcessor
        jadx.core.utils.exceptions.JadxRuntimeException: CFG modification limit reached, blocks count: 926
        	at jadx.core.dex.visitors.blocks.BlockProcessor.processBlocksTree(BlockProcessor.java:66)
        	at jadx.core.dex.visitors.blocks.BlockProcessor.visit(BlockProcessor.java:44)
        */
    @Override // com.corona.game.Action
    public void step(Game r26) {
        /*
        // Method dump skipped, instructions count: 8391
        */
        throw new UnsupportedOperationException("Method not decompiled: com.corona.game.CycleDayNight.step(com.corona.Game):void");
    }
}
